package org.wxd.account.api.user.dto;

import java.io.Serializable;

/**
 * Created by wangxd on 2015/10/30.
 */
public class UserAddRequest implements Serializable{

    private static final long serialVersionUID = 8747433046126139666L;
    private String email;
    private String password;
    private String name;

    UserAddRequest(){}
    public UserAddRequest(Builder builder) {
        this.email = builder.email;
        this.password = builder.password;
        this.name = builder.name;
    }

    public static Builder newBuilder(){
        return new Builder();
    }
    public String email() {
        return email;
    }

    public String password() {
        return password;
    }


    public String name() {
        return name;
    }

    public static class Builder{
        String email;
        String name;
        String password;

        public Builder email(String email) {
            this.email = email;
            return this;
        }


        public Builder name(String name) {
            this.name = name;
            return this;
        }

        public Builder password(String password) {
            this.password = password;
            return this;
        }

        public UserAddRequest build(){
            return new UserAddRequest(this);
        }
    }

}
